﻿using System;

namespace FreshMeat.Storage
{
   /// <summary>
   /// Sharing modes for opening a file.
   /// </summary>
   [Flags]
   public enum OpenShare
   {
      /// <summary>
      /// Doesn't allow any other acess to the file.
      /// </summary>
      None = 0,

      /// <summary>
      /// Allows read access to the file.
      /// </summary>
      Read = 1,

      /// <summary>
      /// Allows write access to the file.
      /// </summary>
      Write = 2,

      /// <summary>
      /// Allows read and write access to the file.
      /// </summary>
      ReadWrite = Write | Read,

      /// <summary>
      /// Allows deleting of the file.
      /// </summary>
      Delete = 4,
   }
}